package com.phospherus.user.service

import com.phospherus.common.service.impl.BaseServiceImpl
import com.phospherus.user.entity.Resource
import com.phospherus.user.entity.User
import com.phospherus.user.repository.ResourceRepository
import org.springframework.stereotype.Service

/**
 * @author songjinlong
 * @version 1.0
 * @since 2017/11/30
 */
@Service
class ResourceService : BaseServiceImpl<Resource, Long, ResourceRepository>() {
    fun getResources(user: User): List<Resource>? {
        return repository.getResourcesByUserId(user.id)
    }
}